<?php
class EventModel extends Model{
	public function event_data(){
		return M('event','','DB_MEETING')->select();
	}
	public function delete_event($data){
		return M('event','','DB_MEETING')->where('event_id='.$data)->delete();
	}
	public function find_event($data){
		return M('event','','DB_MEETING')->where('event_id='.$data)->find();
	}
	public function event_log_data($data){
		return M('event_log','','DB_MEETING')->where('event_id='.$data)->order('event_state')->select();
	}
	public function event_executionlog_data($data){
		return M('event_executionlog','','DB_MEETING')->where('event_id='.$data)->select();
	}
	public function event_delete($data){
		return M('event','','DB_MEETING')->where('event_id='.$data)->delete();
	}
}

?>